<% excursions = subject_excursions(profile_or_current_subject, {:scope => scope, :limit => 0, :page=> page, :sort_by=> params[:sort_by]||sort_by||"popularity"}) %>

<% excursions.each do |excursion| %>
	<%= render :partial => 'excursions/excursion', :locals => { :excursion => excursion, :prefix_id=> prefix_id} %>
<% end %>

<script>
	$(document).ready(function(){		
		update_pageless_state("net", <%=excursions.num_pages%>, <%=excursions.current_page%>);
		re_apply_pageless("net");
		$("#wrap").addClass("wrap-when-fixed-bottom");
	});
</script>

